---------------------------------------------------------------------------------------------------
IF (SELECT OBJECT_ID('CaseManagement.GetAllTypesOfGrant')) IS NOT NULL
BEGIN
	DROP PROCEDURE CaseManagement.GetAllTypesOfGrant 
END
---------------------------------------------------------------------------------------------------

GO
CREATE PROCEDURE CaseManagement.GetAllTypesOfGrant

AS 

---------------------------------------------------------------------------------------------------
--						Liberty
---------------------------------------------------------------------------------------------------
--  Stored Procedure :: GetAllTypesOfGrant
--                                                                            
---------------------------------------------------------------------------------------------------

SET NOCOUNT ON 

SELECT 	OID,
		Description,
		Version,
		DisplayOrder
FROM TypesOfGrant
WHERE Active = 1        
ORDER BY DisplayOrder    

GO

---------------------------------------------------------------------------------------------------
-- Assign appropriate permissions
---------------------------------------------------------------------------------------------------
GRANT EXECUTE ON CaseManagement.GetAllTypesOfGrant TO [Liberty_Users]
GO

